ReadOnlyCollectionBase Members

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Syntax

C#
[SerializableAttribute]
public abstract class ReadOnlyCollectionBase<T>
Visual Basic (Declaration)
<SerializableAttribute> _
Public MustInherit Class ReadOnlyCollectionBase(Of T)
Visual C++
[SerializableAttribute]
generic<typename T>
public ref class ReadOnlyCollectionBase abstract

Type Parameters

T

The type exposes the following members.

Protected Constructors

Public Methods

  NameDescription
Public methodContains
Determines if the collection contains a particular item. This default implementation iterates all of the items in the collection via GetEnumerator, testing each item against item using IComparable<T>.Equals or Object.Equals.
Public methodConvertAll<(Of <TOutput>)>
Convert this collection of items by applying a delegate to each item in the collection. The resulting enumeration contains the result of applying converter to each item in this collection, in order.
Public methodCopyTo
Copies all the items in the collection into an array. Implemented by using the enumerator returned from GetEnumerator to get all the items and copy them to the provided array.
Public methodCountWhere
Counts the number of items in the collection that satisfy the condition defined by predicate.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExists
Determines if the collection contains any item that satisfies the condition defined by predicate.
Public methodFindAll
Enumerates the items in the collection that satisfy the condition defined by predicate.
Public methodForEach
Performs the specified action on each item in this collection.
Public methodGetEnumerator
Must be overridden to enumerate all the members of the collection.
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToArray
Creates an array of the correct size, and copies all the items in the collection into the array, by calling CopyTo.
Public methodToString
Shows the string representation of the collection. The string representation contains a list of the items in the collection.
(Overrides Object..::ToString()().)
Public methodTrueForAll
Determines if all of the items in the collection satisfy the condition defined by predicate.

Protected Methods

  NameDescription
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)

Public Properties

  NameDescription
Public propertyCount
Must be overridden to provide the number of items in the collection.

Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodICollection<(Of <T>)>..::Add
Explicit interface implemetationPrivate methodICollection<(Of <T>)>..::Clear
Explicit interface implemetationPrivate propertyICollection<(Of <T>)>..::IsReadOnly
Explicit interface implemetationPrivate methodICollection<(Of <T>)>..::Remove
Explicit interface implemetationPrivate methodICollection..::CopyTo
Copies all the items in the collection into an array. Implemented by using the enumerator returned from GetEnumerator to get all the items and copy them to the provided array.
Explicit interface implemetationPrivate propertyICollection..::IsSynchronized
Indicates whether the collection is synchronized.
Explicit interface implemetationPrivate propertyICollection..::SyncRoot
Indicates the synchronization object for this collection.
Explicit interface implemetationPrivate methodIEnumerable..::GetEnumerator
Provides an IEnumerator that can be used to iterate all the members of the collection. This implementation uses the IEnumerator<T> that was overridden by the derived classes to enumerate the members of the collection.

See Also